package ar.edu.caece.compiler.grammar.nonterminals;

import ar.edu.caece.compiler.grammar.NonTerminalSymbol;
import ar.edu.caece.compiler.grammar.terminals.ComaToken;

public class TEXTOA1 extends NonTerminalSymbol implements TEXTOA {
	
	private ComaToken coma;
	private TEXTO texto;

	public TEXTOA1(ComaToken coma, TEXTO texto) {
		super();
		this.coma = coma;
		this.texto = texto;
	}

	@Override
	public String getRepresentation() {
		return "{"+this.getClass().getSimpleName()+" -> "+coma.getRepresentation()+" "+texto.getRepresentation()+"}";
	}

	public ComaToken getComa() {
		return coma;
	}

	public TEXTO getTexto() {
		return texto;
	}

}
